package com.example.othree.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.othree.entity.OzoneCaseDay;
import com.example.othree.mapper.PollutionCaseDayMapper;
import com.example.othree.service.PollutionCaseDayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service
public class PollutionCaseDayServiceImpl extends ServiceImpl<PollutionCaseDayMapper, OzoneCaseDay> implements PollutionCaseDayService {

    @Resource
    PollutionCaseDayMapper pollutionCaseDayMapper;

    @Override
    public List<HashMap<String, String>> OzoneCaseDayForTime(String startTime, String endTime) {
        return pollutionCaseDayMapper.ozoneByTime(startTime, endTime);
    }
}
